import {TimeUtils} from "@/utils/TimeUtils";
import {NumberUtils} from "@/utils/NumberUtils";

export function PCWuWo(json: string) {
  let object = JSON.parse(json)
  let lrclist: {
    lineLyric: string;
    time: string;
  }[] = object.data.lrclist
  let result = lrclist.map(i => {
    let num = Number(NumberUtils.mul(i.time, 1000))
    if(num<0) {
      num = 0
    }
    let time = TimeUtils.parseTime(num, 'mm:ss.SS')
    return `[${time}] ${i.lineLyric}`
  }).join('\n')
  console.log(result)
}

